<%--
    提案详情页,用来详细显示某个提案的内容
    User: limeng
    Date: 16/4/28
    Time: 上午9:05
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<link rel="stylesheet" href="/css/proposalDetail.css"/>
<link rel="stylesheet" href="/css/sbadmin/font-awesome.min.css">

<style>
    .jc_attachmentlist a {
        color: #0a529c;
        text-decoration: none;
    }
    .jc_attachmentlist > div {
        margin-bottom: 10px;
    }
</style>


<script src="/js/lib/bootbox.js"></script>
<script src="/js/util/ShowAlert.js"></script>

<section class="proposalDiv">
    <div class="proposal_title">
        <span class="title_font">{{proposal.title}}</span><br><br>
        <span class="blue_font">作者:</span>{{proposal.author.name}}&nbsp;&nbsp;
        <span class="blue_font">修改日期:</span>{{proposal.updateTime | date : 'yyyy-MM-dd HH:mm:ss'}}&nbsp;&nbsp;
        <span class="blue_font">点击次数：</span>{{proposal.clickCount}}
    </div>

    <div class="proposal_content" id="proposalContent">
        正在加载……
    </div>

    <h2>附件</h2>
    <div class="jc_well jc_attachmentList">
        <div ng-repeat="attachment in attachments">
            <a ng-href="http://localhost:8080/attachment/download/{{attachment.id}}">
                <i class="fa fa-file fa-fw"></i> {{attachment.filename}}
            </a>
            <span class="pull-right">{{attachment.size}} KB</span>
        </div>
    </div>

    <div class="secondMotionDiv">
        <div class="jc_well" ng-repeat="secondMotion in secondMotionList">
            {{secondMotion.author.name}}说：<br>
            {{secondMotion.content}}
        </div>
        <button class="jc_btn" ng-show="showMoreMotion" ng-click="refreshMotionList()">
            显示更多…
        </button>
    </div>
</section>
